package com.fiveGroup.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fiveGroup.mapper.OrderInfoVoMapper;
import com.fiveGroup.pojo.vo.OrderInfoVo;
import com.fiveGroup.service.OrderInfoVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class OrderInfoVoServiceImpl extends ServiceImpl<OrderInfoVoMapper, OrderInfoVo>
        implements OrderInfoVoService {

    @Autowired
    private OrderInfoVoMapper orderInfoVoMapper;

    @Override
    public IPage<OrderInfoVo> selectOrderInfoVoPage(int current, int size, String orderSn, String productName) {
        Page<OrderInfoVo> page = new Page<>(current, size);
        return orderInfoVoMapper.selectOrderInfoVoPage(page, orderSn, productName);
    }
}
